export function getinfoAsyc(key) {
	return uni.getStorageSync(key)
}


export function getInfo(key) {
	return new Promise((resolve, reject) => {
		uni.getStorage({
			key,
			success: (data) => {
				resolve(data)
			},
			fail: (e) => {
				reject(e)
			}
		})

	})
}

export function setInfo(key, data) {
	return new Promise((resolve, reject) => {
		uni.setStorage({
			key,
			data,
			success: (res) => {
				resolve(res)
			},
			fail: (e) => {
				reject(e)
			}
		})
	})
}
export function setInfoSync(key, data) {
	uni.setStorageSync(key, data);
}